import 'babel-polyfill'

import Vue from 'vue'
import ElementUI from 'element-ui'
import '../theme/index.css'
import './assets/icon/iconfont.css'
import App from './App.vue'

import router from './router'
// 引入公共css
import './assets/css/base.css'

import { post, get, patch, put,upload } from './api/index'
import api from "./api/index";

Vue.use(ElementUI)

// 定义全局变量
Vue.prototype.$post = post
Vue.prototype.$get = get
Vue.prototype.$patch = patch
Vue.prototype.$put = put
Vue.prototype.$upload = upload
//服务器地址
Vue.prototype.$baseURL = api.baseURL

import promise from 'es6-promise'
promise.polyfill()


new Vue({
	el: '#app',
	router,
	render: h => h(App)
})
